<template>
  <el-container>
    <el-header>
      <el-carousel :interval="4000" type="card" height="200px">
      </el-carousel>
    </el-header>
 <el-main width="400px">
      <div class="aside-content">
    </div>
  </el-main>
 </el-container>
</template>

<script>
export default {
  data() {
    return {
      avatarUrl:
        "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png",
      searchContent: "",
      activeIndex: "/index",
      showingFilmListRowOne: [],
      showingFilmListRowTwo: [],
      ToBEShownFilmList: [],
      // noticeList:[]
    };
  },
  created() {
    this.getMovieList();
    // this.getNoticeList();
  },
  methods: {
    async getMovieList() {
      const { data: result } = await this.$http.get("/movie/getAllMovieList1");
      if (result.status != 200)  return this.$message.error(res.message);
        var temp = result.data;
        temp.forEach((element,i) => {
          if (new Date(element.publicDate)<new Date()) {
            if(this.showingFilmListRowOne.length < 6){
              this.showingFilmListRowOne.push(element);
            }
            else if(this.showingFilmListRowTwo.length < 6){
              this.showingFilmListRowTwo.push(element);
            }
          } else{
            if(this.ToBEShownFilmList.length < 3){
                this.ToBEShownFilmList.push(element);
            }
		   }
        });
      },
	getPoster(path){
		return 'http://'+path
	},
    //点击全部公告
    whole(){
      this.$router.push('/notice')
    }
  },
  }
</script>

<style lang="less" scoped>
#container {
  height: 100%;
  .el-menu-item {
    font-size: 20px;
    margin-top: 19px;
    font-family: Microsoft YaHei, Helvetica, Arial, sans-serif;
  }
}
.el-container {
  height: 100%;
}
.el-header {
  height: auto !important;
}
.el-aside {
  width: 65% !important;
  height: 100%;
  overflow: unset;
}
.el-main {
  height: 100%;
  overflow: unset;
  .notice_wrapper{
    width: 470px;
    font-size: 14px;
      a{
        text-decoration: none;
        color:#000;
        
    }
  }
  .notice_content{
     white-space: nowrap;
     text-overflow: ellipsis;
     overflow: hidden;
    width: 265px;
    display: inline-block;
  }
}
   h2 {
  font-size: 26px;
  font-weight: 400;
  color: red;
  margin-bottom: 20px;
}
.el-menu {
  height: 100%;
  display: inline-block;
}
.logo {
  width: 152px;
  height: 100%;
  margin-right: 10px;
}
.search {
  width: 200px;
  top: -42px;
  left: 64px;
  .el-input__icon {
    cursor: pointer;
  }
}
.el-avatar {
  float: right;
  margin-top: 20px;
}
.el-carousel {
  width: 100%;
  //   height: 450px;
}

.aside-content {
  margin: 0 auto;
  width: 800px;

  h2 {
  font-size: 26px;
  font-weight: 400;
  color: red;
  margin-bottom: 20px;
}
h4{
    color: red;
    font-weight: 400;
    margin-right: 0;
    display: inline-block;
        margin-right: 118px;
        float: right;
  }
}
.el-card {
  width: 200px;
  height: 332px;
  font-size: 0;
}
.movieImg {
  width: 100%;
  height: 286.1px;
}
.movie_info {
  width: 100%;
  color: #fff;
  position: absolute;
  bottom: 57px;
  overflow: hidden;
}
.movie_title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 10px;
  float: left;
}
.movie_score {
  color: #ffb400;
  float: right;
  margin-right: 7px;
}
.el-col {
  position: relative;
  width: 22%;
}
.coming_soon,.notice {
  margin-top: 20px;
  display: inline-block;
}
.movie_sale {
  text-align: center;
  height: 46px;
  line-height: 46px;
  text-decoration: none;
  background: #fff;
  font-size: 16px;

  a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
  }
  a:hover {
    background-color: #ef4238;
    color: #fff;
  }
}
.el-divider--horizontal {
    margin: 11px 0;
}
</style>